import { ajax } from "./xhr"

type DataType = 'html'|'xml'|'json'|'text'|'script'


export function load(url:string, onCompleted?:Function):void
export function load(url:string, data:object, onCompleted?:Function):void
export function load(...args:unknown[]) {}

export function get(url:string, data:object|null, onsuccess:Function, dataType:DataType) {}

export function getJSON() {}
export function getScript() {}
